home *** CD-ROM | disk | FTP | other *** search
/ PC Format (UK) 134 / PC Format DVD 2002.iso / Full / 3D Flash Animator / 3DFlashAnimator3Setup.exe / file0778_1edce1_1edf55.bin < prev    next >
Encoding:
Text File  |  2001-11-08  |  1.2 KB  |  48 lines

  1. <title>Library Textures</title>
  2.  
  3. <script language="EasyScript">
  4.  
  5. ////////////////////
  6. function GetImages ()
  7. {
  8.     if (sub_directory == "") return "";
  9.  
  10.     var buffer = "";
  11.     file_path = getProgramDirectory() + "/library/textures/";
  12.     file_array = getFileList (file_path + "*.*");
  13.     file_array.sortStrings();
  14.     for (m=0; m< file_array.count; m++){
  15.         file_name = file_path + file_array[m];
  16.         buffer += "<img toolbutton src='" + file_name + "' ";
  17.         buffer += "onMouseUp=\"AddLibraryFile('" + file_name + "')\" title='" + file_array[m] + "'>";
  18.         buffer += "<spacer width=15>";}
  19.     return buffer;
  20. }
  21. /////////////////////////////////
  22. function AddLibraryFile (filename)
  23. {
  24.     new_object = fileLoad (filename);
  25.     window.returnValue (new_object);
  26.     window.close ();
  27. }
  28. ////////////////
  29. function Close ()
  30. {
  31.     window.close ();
  32. }
  33.  
  34. </script>
  35.  
  36. <body bgcolor="#FFFFFF" text="#000000" background="backgrounds\whitegrain.gif" translate>
  37. <div valign=middle>
  38.  
  39. <img src='images/small_bullet_blue.bitmap'>Click to choose a texture
  40. <p><include value="GetImages()">
  41.  
  42. <table cellspacing=0 cellpadding=0 width="100%">
  43. <tr><td align=right>
  44. <a button onMouseUp="Close()" width=+20 height=+2><img src="images/small_cancel.bitmap" hspace=4>Cancel</a>
  45. </table>
  46.  
  47. <spacer height=4>
  48.